package com.second.app.thread.join.join_releaselock;

/**
 * @author gyz
 * @date 2021/1/28 14:45
 */
public class CC extends Thread {

    private BB b;

    public CC(BB b) {
        this.b = b;
    }

    @Override
    public void run() {
        b.bService();
    }

    public static void main(String[] args) {
        try {
            BB b = new BB();
            AA a = new AA(b);
            a.start();
            Thread.sleep(1000);
            CC c = new CC(b);
            c.start();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }


    }
}
